package com.agrm.address.service;

import com.agrm.model.address.dto.AddressQuery;
import com.agrm.model.address.pojo.Address;
import com.agrm.model.common.dtos.PageRequestDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface AddressService extends IService<Address> {

    /**
     * 条件查询分页列表
     * @param query
     * @return
     */
    Page<Address> queryList(PageRequestDto page , AddressQuery query);

    /**
     * 根据会员ID查询地址
     * @param memberId
     * @return
     */
    List<Address> getByMemberId(Integer memberId);
}
